<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/7/13
  Time: 15:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="../css/news.css">
    <script src="../js/jquery-3.6.0.min.js"></script>
    <script src="../js/common.js"></script>
</head>

<!--如果要拿到body  肯定需要css    样式   布局  选择器-->
<!--所有的图片和文字不能单独存在，必须包含在div里面
div 块级元素
明明規則：见名知意
ctrl+tab
---为什么要分开？
面向对象原则？
将不同的代码分开？
-->
<body class="common">
<div class="content">
    <!-- 头部   -->
    <jsp:include page="top.jsp"></jsp:include>
    <!--  中间部分 -->
    <div class="middle">
        <div>
            <div class="title">
                <div>新闻介绍</div>
                <div>
                    <div>行业动态</div>
                    <div>公司新闻</div>
                    <div>餐饮知识</div>
                </div>
            </div>
            <div>
                <div class="detail">
                    <c:forEach var="model" items="${newsModels}">
                        <div>
                            <div>
                                <div><img src="../img/21.png" height="16" width="16"/></div>
                                <div>${model.content} </div>
                            </div>
                            <div>${model.createTime}</div>
                        </div>
                    </c:forEach>

                </div>
                <div id="page">

                </div>
            </div>
        </div>
    </div>
    <!--   底部  -->
    <jsp:include page="foot.jsp"></jsp:include>

</div>
</body>
</html>
